home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4601 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: newshost.grace.cri.nz!maths!peterm
  3. From: peterm@maths.grace.cri.nz (Peter McGavin)
  4. Subject: Re: Amiga doesn`t need Pl
  5. Message-ID: <PETERM.96Mar2084112@tui.maths.irl.cri.nz>
  6. Date: 01 Mar 1996 19:41:11 GMT
  7. Distribution: world
  8. References: <john.hendrikx.4hkw@grafix.xs4all.nl>
  9.     <PETERM.96Feb29104046@tui.maths.irl.cri.nz>
  10. Organization: Industrial Research Ltd
  11. In-reply-to: peterm@maths.grace.cri.nz's message of 28 Feb 1996 21:40:46 GMT
  12.  
  13. I wrote:
  14. >john.hendrikx@grafix.xs4all.nl (John Hendrikx) writes:
  15. >>In a message of 25 Feb 96 Peter McGavin wrote to All:
  16. >> PM> Minor point, perhaps, but I now believe it _is_ possible to blit a
  17. >> PM> smaller part of the whole screen (horizontally) with C2P.
  18. >>
  19. >>This final blitter pass, would this be an additional blitter-pass 'normally'
  20. >>not needed?  If so it would be possible.  Otherwise I think it isn't possible
  21. >>as the Destination modulo MUST be zero (remember that only 1 word is copied
  22. >>before each modulo is updated -- the BlitterWindow is after all only 1 word
  23. >>wide, but VERY high, which is what makes the BlitterC2P trick work in the first
  24. >>place).
  25. >
  26. >Whoops, I think you are right after all.  To do it in the final
  27. >(usually 4th) blitter pass would require a blit for every scanline.
  28.  
  29. Golly, did I really write that?  John's message threw me by saying the
  30. blit had to be 1 word wide.  Yet I was almost certain I had worked it
  31. out earlier and was quite puzzled by it not being possible after all.
  32. Anyway, I just worked it out again.  The _source_ modulos are 0 in the
  33. final (usually 4th) C2P pass, hence we can set the width and height to
  34. anything we want that multiplies to the right total.  The width
  35. doesn't have to be 1 in the final pass.  We can set width, height and
  36. destination modulo to match the destination window and bitmap as I
  37. said in the first place.  So it _is_ possible to blit a smaller part
  38. of the whole screen (horizontally) with C2P.
  39. -- 
  40. Peter McGavin.   (p.mcgavin@irl.cri.nz)
  41.  
  42.